package com.sdms.core.login;

import java.util.HashMap;
import java.util.Map;

public class SessionStore {
	
	private static final Map<String, UserSession> sessionMap = new HashMap<String, UserSession>();
	
	public static void addNewSession(UserSession session) {
		sessionMap.put(session.getSesionId(), session);
	}
	
	public static void removeSession(String sessionId) {
		sessionMap.remove(sessionId);
	}
	
	public static UserSession retrieveSession(String sessionId) {
		return sessionMap.get(sessionId);
	}	

}
